home *** CD-ROM | disk | FTP | other *** search
/ Aminet 30 / Aminet 30 (1999)(Schatztruhe)[!][Apr 1999].iso / Aminet / dev / cross / GBDK-2.0.lha / GBDK / include / rand.h < prev    next >
C/C++ Source or Header  |  1998-11-14  |  518b  |  38 lines

  1. #ifndef _RAND_H
  2. #define _RAND_H
  3.  
  4. #include <types.h>
  5.  
  6.  
  7. /*
  8.  * Random generator using the linear congruential method
  9.  *
  10.  * Author: Luc Van den Borre
  11.  */
  12.  
  13. void
  14. initrand(UWORD seed);
  15.  
  16. UBYTE
  17. rand(void);
  18.  
  19. UWORD
  20. randw(void);
  21.  
  22. /*
  23.  * Random generator using the linear lagged additive method
  24.  *
  25.  * Author: Luc Van den Borre
  26.  *
  27.  * Note that 'initarand()' calls 'initrand()' with the same seed value, and
  28.  * uses 'rand()' to initialize the random generator.
  29.  */
  30.  
  31. void
  32. initarand(UWORD seed);
  33.  
  34. UBYTE
  35. arand(void);
  36.  
  37. #endif /* _GB_H */
  38.